export default {
  install: function (Vue) {
    const components = import.meta.glob('@/components-g/**/*.vue', { eager: true })
    for (const k in components) {
      const component = components[k].default
      if (component.name) {
        Vue.component(component.name, component)
      } else if (component.install) {
        Vue.use(component)
      }
    }
  }
}
